#ifndef __H_PROCESS_CYCLE_H__
#define __H_PROCESS_CYCLE_H__

#include "linux_def.h"
#include "core.h"

#define CMD_OPEN_CHANNEL	1
#define CMD_CLOSE_CHANNEL	2
#define CMD_QUIT		3
#define CMD_TERMINATE		4

#define PROCESS_SINGLE	0
#define PROCESS_MASTER	1
#define PROCESS_WORKER	2

void master_process_cycle(cycle_t *cycle);

extern int	process;
extern pid_t	g_pid;

extern sig_atomic_t	reap;
extern sig_atomic_t	sigio;
extern sig_atomic_t	quit;
extern sig_atomic_t	terminate;
extern sig_atomic_t	noaccept;


#endif
